import $http from '@/assets/js/http'
//印厂库 api

//印厂库分类列表
export function pressList(param){
	return $http.get('/manage/press/category/list',{
		params:{
			pageIndex:param.pageIndex,
			pageSize:param.pageSize
		}
	})
}

//删除印厂库分类
export function pressDetele(id){
	return $http.post('/manage/press/category/delete',{
		id:id,
	})
}

//新增印厂库分类
export function pressAdd(param){
	return $http.post('/manage/press/category/add',{
		categoryName:param.title,
	})
}

//编辑印厂库分类
export function pressEdit(param){
	return $http.post('/manage/press/category/update',{
		id:param.id,
		categoryName:param.title,
	})
}


//印厂库列表
export function pressProductList(param){
	return $http.get('/manage/press/list',{
		params:{
			companyName:param.companyName,
			pageIndex:param.pageIndex,
			pageSize:param.pageSize
		}
	})
}

//删除印厂库
export function pressProductDetele(id){
	return $http.post('/manage/press/delete',{
		id:id,
	})
}

//印厂库详情
export function pressProductWatch(id){
	return $http.get('/manage/press/detail',{
		params:{
			id:id,
		}
	})
}